package com.vidaappv1;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class BigMenu extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_big_menu);
		
		Button btnHot = (Button)findViewById(R.id.btnHot);
		Button accountinfobutton = (Button)findViewById(R.id.btnAcc);
		Button coldbutton = (Button)findViewById(R.id.btnCold);
		Button cakesbutton = (Button)findViewById(R.id.BtnCakes);
		Button orderusualbutton = (Button)findViewById(R.id.BtnUsual);

		btnHot.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getApplicationContext(),DrinksMenu.class));
			}
		});
		accountinfobutton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getApplicationContext(),AccountInfo.class));
			}
		});
		coldbutton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Toast.makeText(getApplicationContext(), "This function has been disabled", Toast.LENGTH_LONG).show();		
			}
		});
		
		cakesbutton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Toast.makeText(getApplicationContext(), "This function has been disabled", Toast.LENGTH_LONG).show();						
			}
		});

		orderusualbutton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				startActivity(new Intent(getApplicationContext(),RegularOrder.class));
			}
		});

	}

	
	
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.big_menu, menu);
		return true;
	}

}
